export interface JupiterArticle {
  uuid: string;
  title: string;
  content: string;
  summary?: string;
  author: string;
  categoryUuid?: string;
  categoryName?: string;
  tagUuids?: string[];
  tagNames?: string[];
  status: 'DRAFT' | 'PUBLISHED' | 'ARCHIVED';
  isTop: boolean;
  viewCount: number;
  likeCount: number;
  commentCount: number;
  publishTime?: string;
  createTime: string;
  updateTime?: string;
  deleteTime?: string;
  // 新增字段
  cover?: string;           // 封面图 URL
  readType: number;         // 阅读权限（0：公开，1：私密）
  isOriginal: boolean;      // 是否原创
  isCarousel: boolean;      // 是否轮播图展示
  isRecommend: boolean;    // 是否推荐展示
  originalUrl?: string;     // 转载原文地址
}

export interface JupiterArticleQuery {
  title?: string;
  author?: string;
  categoryUuid?: string;
  status?: string;
  tagUuid?: string;
  publishTimeStart?: string;
  publishTimeEnd?: string;
  page: number;
  size: number;
}

export interface JupiterArticleForm {
  title: string;
  content: string;
  summary?: string;
  author: string;
  categoryUuid?: string;
  tagUuids?: string[];
  status: 'DRAFT' | 'PUBLISHED' | 'ARCHIVED';
  isTop?: boolean;
  publishTime?: string;
  // 新增字段
  cover?: string;           // 封面图 URL
  readType?: number;        // 阅读权限（0：公开，1：私密）
  isOriginal?: boolean;     // 是否原创
  isCarousel?: boolean;     // 是否轮播图展示
  isRecommend?: boolean;    // 是否推荐展示
  originalUrl?: string;      // 转载原文地址
}
